// 组件库的less
@import "../css/color";
#app {
  .tips {
    position: absolute;
    top: 2px;
    left: 10px;
    z-index: 1001;
    background-color: @risk-bg;
    border-radius: 4px;
    opacity: .8;
    padding: 0 4px;
    &::before {
      content: '组件名称: ';
      margin-right: 6px;
    }
  }
}


// 标题
.box {
  position: relative;
  width: 98%;
  margin: 20px auto;
  border-radius: 4px;
  padding: 20px;
  box-shadow: 0 0 4px @basicColor;
  color: @basicColor;
  p {
    text-align: center;
    i {
      background-color: @risk-bg;
      padding: 2px 4px;
      border-radius: 4px;
    }
  }
}




// 轮播
@img-height: auto;
@img-width: 100%;
@lunbo-color: #ffffff;
// 是否显示next
@next: none;
.lunbo {
  position: relative;
  a:hover {
    text-decoration: none;
  }
  .item {
    color: @lunbo-color;
    img {
      width: @img-width;
      height: @img-height;
    }
  }
  .handle {
    display: @next;
    position: absolute;
    top: 50%;
    font-size: 50px;
    color: @lunbo-color;
    transform: translateY(-50%);
    &.left {
      left: 6px;
    }
    &.right {
      right: 6px;
    }
  }
}

//